package com.scy.servlet;

import com.scy.factory.BeanFactory;
import com.scy.factory.ProxyFactory;
import com.scy.service.TransferService;

/**
 * @author 司晨雨
 * @date 2020/5/16 21:48
 * @description
 */
public class test {

    public static void main(String[] args) throws  Exception {
       /* Object proxyFactory = BeanFactory.getBean("proxyFactory");
        System.out.println(proxyFactory);*/
        ProxyFactory proxyFactory = (ProxyFactory) BeanFactory.getBean("proxyFactory");
        TransferService transferService = (TransferService) proxyFactory.getCglibProxy(BeanFactory.getBean("transferService"));
        transferService.transfer("11", "22",2);
        System.out.println(transferService);
    }
}
